package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.ProductDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2024-09-05
 */
@Mapper
public interface ProductDetailsMapper extends BaseMapper<ProductDetails> {
    @Select("select * from product_details where product_details_id = #{id}")
    List<ProductDetails> listAllByProductDetailsId(@Param("id") Integer id);
}
